
import request from '@/api/request';
// 方法

// 获取历史记录
export function indexaction(data) {
    return request({
        url: '/bufan/search/indexaction',
        data
    })
}
// 搜索商品
export function helperaction(data) {
    return request({
        url: '/bufan/search/helperaction',
        data
    })
}
// 删除历史记录
export function clearhistoryAction(data) {
    return request({
        url: '/bufan/search/clearhistoryAction',
        method: 'post',
        data
    })
}
// 关键字添加到历史记录
export function addhistoryaction(data) {
    return request({
        url: '/bufan/search/addhistoryaction',
        method: 'post',
        data
    })
}